<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * 우편번호 검색 컨트롤러
 */
class Zipcode extends CI_Controller {
	
	function __construct() {
		parent::__construct();
	}

	// Default
	function index() {
		log_message('debug', "@@@@ Zipcode::index()");

		// 폼 정보 가져오기
		$search_string = $this->input->get('search_string');
		
		$data['search_string'] = $search_string;

		// 검색어가 있을경우
		if (!empty($search_string)) {
			$this->load->model('member/Zipcode_model', 'model', TRUE);
			$data['zipcode_list'] = $this->model->select_zipcode_list($search_string);
		}

		$this->load->view('member/zipcode_pop_v', $data);

	}
}

/* End of file zipcode.php */
/* Location: ./application/controllers/member/zipcode.php */